<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>循环的嵌套</title>
</head>
<body>
    <script>
        var i,a,b,c;
        for(i=100;i<1000;i++)
        {
            var i1=String(i);
            a=Number(i1.charAt(0));
            b=Number(i1.charAt(1));
            c=Number(i1.charAt(2));
            if(c>a&&a>b&&a+b+c==a*b*c){
                console.log(i);
                alert(i)
            }
        }
    </script>
</body>
</html>